//
//  MBProgressHUD+CT.m
//
//  Created by tao.chen on 14-12-5.
//  Copyright (c) 2014年 PayEigs. All rights reserved.
//

#import "MBProgressHUD.h"

@interface MBProgressHUD (CT)

#pragma mark - 自动隐藏
+(void)showMessage:(NSString *)message lock:(BOOL)lock;
+(void)showMessage:(NSString *)message toView:(UIView *)view lock:(BOOL)lock;
+ (void)showMessage:(NSString *)message lock:(BOOL)lock completionBlock:(void(^)())completionBlock;

+ (void)showSuccess:(NSString *)success lock:(BOOL)lock;
+ (void)showSuccess:(NSString *)success toView:(UIView *)view lock:(BOOL)lock;
+ (void)showSuccess:(NSString *)success lock:(BOOL)lock completionBlock:(void(^)())completionBlock;

+ (void)showError:(NSString *)error ;
+ (void)showError:(NSString *)error toView:(UIView *)view;
+ (void)showError:(NSString *)error completionBlock:(void(^)())completionBlock;

+ (MBProgressHUD *)showWaiting:(NSString *)message lock:(BOOL)lock;
+ (MBProgressHUD *)showWaiting:(NSString *)message toView:(UIView *)view lock:(BOOL)lock;

+ (void)hideHUD;
+ (void)hideHUDForView:(UIView *)view;

+(void)showWithLock;
+(void)resignLock;


@end
